package com.yunxin.admin.system.infra.persistence.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yunxin.admin.system.infra.persistence.entity.SysUserRoleDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 用户角色持久层
 *
 * @author zero°
 * @since 2023-05-22
 */
@Mapper
public interface SysUserRoleMapper extends BaseMapper<SysUserRoleDO> {

    /**
     * 更新用户角色
     * @param userId
     * @param roleId
     */
    void updateUserRole(@Param("userId") Long userId,@Param("roleId") Integer roleId);
}
